﻿using System;
using System.Collections.Generic;
using System.Windows.Media.Imaging;
using System.Linq;
using System.Text;
using System.Collections;

namespace BeerManagementSystem
{

    public class BeerboxItem
    {
        public DateTime Timestamp { get; set; }
        public string Sender { get; set; }
        public string Message { get; set; }
        private BitmapImage _userImage;
        private BitmapImage _messageImage;
        public BitmapImage UserImage { 
            get { return _userImage; }
            set { 
                _userImage = value;
                _userImage.Freeze();
            } }

        public BitmapImage MessageImage
        {
            get { return _messageImage; }
            set { _messageImage = value;}
        }
        private UriConnector _uri;

        public BeerboxItem(string userImagePath, string messageImagePath)
        {
            UserImage = new BitmapImage(new Uri(userImagePath));

        }

        public BeerboxItem()
        {
        }
    }

}
